<%@ page import="java.net.URLEncoder" %><%--
  Created by IntelliJ IDEA.
  User: 范军建
  Date: 2022/3/28
  Time: 18:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    request.setCharacterEncoding("utf-8");
    response.setCharacterEncoding("utf-8");
    String user= request.getParameter("user");
    String pass= request.getParameter("pass");
    if (user.equals("")||pass.equals("")){

        request.setAttribute("num1","注册失败");

        request.getRequestDispatcher("file.jsp").forward(request,response);
    }else{
        response.sendRedirect(request.getContextPath() + "/denglu.jsp");
    }
%>
</body>
</html>
